import requests
from lxml import etree

def mai():
    craw1_urls = [
        'https://36kr.com/p/1328468833360133',
        'https://36kr.com/p/1328528129988866',
        'https://36kr.com/p/1328512085344642'
    ]

    parse_rule = "//h1[contains(@class,'article-title margin-bottom-20 common-width')]/text()"

    for url in craw1_urls:
        response = requests.get(url)
        result = etree.HTML(response.text).xpath(parse_rule)
        print(result)
if __name__ == '__main__':
    mai()


